from parser import *

import os

block_paths = os.listdir("U:/Restructured/blocks/")

block_images = [image_load2("U:/Restructured/blocks/" + path) for path in block_paths]

level_map = image_load2("mario-1-1.gif")
level_chunk = get_chunk(level_map, 32, 32)

print get_block_type(image_load2("derppml.bmp"), block_images)
print get_block_type(level_chunk, block_images)


parse_level(level_map, 32, 32, "test.txt")
